<?php
namespace app\api\controller;
use app\api\model\AdminUser;
use app\api\validate\BaseValidate;

class Index extends Base
{

    public function adminLogin()
    {
        $data = $this->request;
        $validata = New BaseValidate(); //验证数据
        if(!$validata-> check($data)){
             return $validata-> getError();
        }
        $res = AdminUser::Mlogin($data);
        switch ($res)
        {
            case 1:

                return;
        }

        return json_encode($res);
    }

}

